package com.vf.admin.client.dao;

import com.vf.admin.common.db.BaseDao;
import com.vf.admin.miaodong.entity.AppSignUserAlert;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public class AppSignUserAlertDao extends BaseDao<AppSignUserAlert> {

    public AppSignUserAlert find(Integer userId) {
        ArrayList<Object> paramList = new ArrayList<>();
        StringBuilder sbStr = new StringBuilder("select * from app_sign_user_alert where userId = ?");
        paramList.add(userId);
        String sql = sbStr.toString();
        return this.queryObj(sql, paramList, AppSignUserAlert.class);
    }
}
